<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    {{ if .IsHome -}}
    <title>{{ .Site.Title }} | {{ .Site.Params.subtitle}}</title>
    <meta property="og:title" content="{{ .Site.Title }} | {{ .Site.Params.subtitle}}">
    <meta property="og:type" content="website">
    <meta name="Keywords" content="{{.Site.Params.keywords}}">
    <meta name="description" content="{{ .Site.Params.description }}">
    {{- else -}}
    <title>{{ .Title }} | {{ .Site.Title }}</title>
    <meta property="og:title" content="{{ .Title }} - {{ .Site.Title }}">
    <meta property="og:type" content="article">
        {{ with .Params.date }}
    <meta property="article:published_time" content='{{ .Format "2006-01-02T15:04:05+08:00" }}'>
        {{ end }}
        {{ with .Params.lastmod }}
    <meta property="article:modified_time" content='{{ .Format "2006-01-02T15:04:05+08:00" }}'>
        {{ end }}
    <meta name="Keywords" content="{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Site.Params.keywords }}{{ end }}">
    <meta name="description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Title }}{{ end }}">
        {{ if .Params.author -}}
    <meta name="author" content="{{ .Params.author }}">
        {{ else }}
    <meta name="author" content="{{ .Site.Author.name }}">
        {{- end }}
    {{- end }}
    <meta property="og:url" content="{{ .Permalink }}">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">

    <link rel="stylesheet" href='{{ "css/normalize.css" | relURL}}'>
    <link rel="stylesheet" href='{{ "css/style.css" | relURL }}'>
    {{ range .AlternativeOutputFormats -}}
        {{ printf `<link rel="%s" type="%s+%s" href="%s" title="%s" />` .Rel .MediaType.Type .MediaType.Suffix .Permalink $.Site.Title | safeHTML }}
    {{ end -}}
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

    <link href="/kityminder/mindmap.css?_=1416390706100" type="text/css" rel="stylesheet" />
    <link href="/kityminder/kityminder.core.css?_=1416390706100" type="text/css" rel="stylesheet" />
    <script src="/kityminder/kity.min.js?_=1416390706100" charset="utf-8"></script>
    <script src="/kityminder/kityminder.core.min.js?_=1416390706100" charset="utf-8"></script>
    <script src="/kityminder/mindmap.min.js?_=1416390706100" charset="utf-8"></script>

    {{ if .Site.Params.googleAd }}
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({
        google_ad_client: "{{ .Site.Params.googleAd }}",
        enable_page_level_ads: true
    });
    </script>
    {{ end }}


    <!-- custom css -->
    {{ range .Site.Params.customCSS }}
        <link rel="stylesheet" href='{{ "/css/" | relURL }}{{ . }}'>
    {{ end }}
</head>
